import request from '@/utils/request'

export default {
    // 获取桶下文件列表
    getBucketList: () => {
        return request.get('/admin/oss/list')
    },

    // 获取桶下文件列表
    getBucketFileList: (bucketName: string, data: any) => {
        return request.get('/admin/oss/' + bucketName + '/list', { params: data })
    },

    // 删除桶下文件
    delFile: (bucketName: string, data: any) => {
        return request({
            url: '/admin/oss/' + bucketName + '/remove',
            method: 'delete',
            data:data
        })
    }
}
